import "./assets/main.css";

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router"; //路由
import "../src/global/public.css"; //组件样式
import { Swipe, SwipeItem } from "vant"; //轮播图引入
import { Rate } from "vant"; //评分
import { Uploader } from "vant"; //上传图片
import { Notify } from "vant"; //弹窗提示
import { FloatingBubble } from "vant"; //气泡提示
import { Grid, GridItem } from "vant"; //宫格样式
import { Form, Field, CellGroup } from "vant"; //校验
import { createPinia } from 'pinia'//创建一个 pinia（根存储）并将其传递给应用程序
import "vant/lib/index.css";
const app = createApp(App);
app.use(router);
app
  .use(Swipe)
  .use(SwipeItem)
  .use(Rate)
  .use(Uploader)
  .use(Notify)
  .use(FloatingBubble)
  .use(Grid)
  .use(GridItem)
  .use(Form)
  .use(Field)
  .use(CellGroup)
  .use(createPinia());
app.mount("#app");
